package com.zw.yzk.kabu.data.exception;


/**
 * Created by zhanwei on 2016/12/23.
 * UnknownHostException      1001
 * SocketException           1002
 * SocketTimeoutException    1003
 * IOException               1004
 */

public class CustomException extends RuntimeException {
    private int errCode;
    private String errMsg;

    public CustomException() {
    }

    public CustomException(int code) {
        errCode = code;
    }

    public CustomException(int code, String errMsg) {
        this.errCode = code;
        this.errMsg = errMsg;
    }

    public void setErrMsg(String msg) {
        this.errMsg = msg;
    }

    public void setErrCode(int errCode) {
        this.errCode = errCode;
    }

    public void setError(int code, String msg) {
        this.errCode = code;
        this.errMsg = msg;
    }

    public int getErrCode() {
        return errCode;
    }

    public String getErrMsg() {
        return errMsg;
    }
}
